package com.yunkuhui.www.demo.controller;

import com.yunkuhui.www.demo.form.Condition;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class BodyController {

	@RequestMapping(value = "/body", method = RequestMethod.POST)
	public Condition conf(@RequestBody Condition condition) {
		System.out.println("22222222222222222222222");
		System.out.println(condition.toString());
		return condition;
	}
}
